package cn.example.vip.mall.goods.service;

import cn.example.vip.mall.goods.entity.CategoryBrand;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface CategoryBrandService extends IService<CategoryBrand> {
	List<CategoryBrand> queryListByCategory(CategoryBrand categoryBrand);
	Page<CategoryBrand> queryPageListByCategory(CategoryBrand categoryBrand, Long pageNum, Long pageSize);
	List<CategoryBrand> queryListByBrand(CategoryBrand categoryBrand);
	Page<CategoryBrand> queryPageListByBrand(CategoryBrand categoryBrand, Long pageNum, Long pageSize);
	Integer updateByCategoryBrand(CategoryBrand categoryBrand, Integer categoryId, Integer brandId);
	Integer deleteByCategory(CategoryBrand categoryBrand);
}
